The "Combinations" program is both a fun and useful program.
It is an adaptation from an example given in the TI-57 programming guide.
From a given number of elements in a set it computes the number of possible combinations of a subset of elements without repetition. An example of this is a deck of playing cards. There are 52 cards in the deck, playing hands are delt out in groups of five, since no two hands are the same, how many possible hands are there?
2,598,960
The "Combinations" program is somewhat different than the other example programs. It does not use prompt dialogs as the others do. Instead, it relies on the right values being in the display at the appropriate times. This is a carry-over from adapting a program for a hand-held calculator and is not intended to serve as a "good" example. This data entry technique can have its benefits for down and dirty programs which are used for only a brief period. For programs that you plan to keep, using prompt dialogs can make their operation easier to remember.
Here is a walk-thru example for calculating the odds of the new California 6/51 State Lottery:
1) enter the value of 51 into the calculator.
2) press the "Run" control button.
the calculator will do its thing for a while and then enter "pause" mode.
3) When paused, enter 6 into the calculator
4) press the "Cont" control button.
5) When the calculator stops the possible combinations are displayed.